{extend name="public:base" /}


{block name="css"}
<link rel="stylesheet" type="text/css" href="/static/layui/css/layui.css"/>
<link rel="stylesheet" type="text/css" href="__ADMIN__/css/style.css">
{/block}

{block name="content"}

<div class="wrapper wrapper-content animated fadeInRight">
    <div class="row">
        <div class="col-lg-12">
            <div class="ibox ">
                <div class="ibox-content">
                    <form method="post">
                        <div class="box-item">
                            <div class="form-group row">
                                <label class="col-sm-1 col-form-label">销售单位名称</label>
                                <div class="col-sm-3">
                                    <input type="text" class="form-control" name="seller_name" placeholder="请输入销售单位名称" value="{$info.seller_name}">
                                </div>
                            </div>
                            <div class="hr-line-dashed"></div>
                        </div>

                        <div class="box-item">
                            <div class="form-group row layui-form">
                                <label class="col-lg-1 col-form-label">发票类型：</label>
                                <div class="col-lg-3">
                                    <input type="radio" name="invoice_type" value="1" title="普票" {$info.invoice_type == 1 ? 'checked' : ''}>
                                    <input type="radio" name="invoice_type" value="2" title="专票" {$info.invoice_type == 2 ? 'checked' : ''}>
                                </div>
                            </div>
                            <div class="hr-line-dashed"></div>
                        </div>

                        <div class="box-item">
                            <div class="form-group row">
                                <label class="col-sm-1 col-form-label">购买方单位名称</label>
                                <div class="col-sm-3">
                                    <input type="text" class="form-control" name="buyer_name" placeholder="请输入购买方单位名称" value="{$info.buyer_name}">
                                </div>
                            </div>
                            <div class="hr-line-dashed"></div>
                        </div>

                        <div class="box-item">
                            <div class="form-group row">
                                <label class="col-sm-1 col-form-label">购买方税号</label>
                                <div class="col-sm-3">
                                    <input type="text" class="form-control" name="buyer_tax_no" placeholder="请输入购买方税号" value="{$info.buyer_tax_no}">
                                </div>
                            </div>
                            <div class="hr-line-dashed"></div>
                        </div>

                        <div class="box-item">
                            <div class="form-group row">
                                <label class="col-sm-1 col-form-label">购买方地址、电话（普票可不提供）</label>
                                <div class="col-sm-3">
                                    <input type="text" class="form-control" name="buyer_address_phone" placeholder="请输入购买方地址、电话（普票可不提供）" value="{$info.buyer_address_phone}">
                                </div>
                            </div>
                            <div class="hr-line-dashed"></div>
                        </div>

                        <div class="box-item">
                            <div class="form-group row">
                                <label class="col-sm-1 col-form-label">购买方开户行名称（普票可不提供）</label>
                                <div class="col-sm-3">
                                    <input type="text" class="form-control" name="buyer_bank_name" placeholder="请输入购买方开户行名称（普票可不提供）" value="{$info.buyer_bank_name}">
                                </div>
                            </div>
                            <div class="hr-line-dashed"></div>
                        </div>

                        <div class="box-item">
                            <div class="form-group row">
                                <label class="col-sm-1 col-form-label">购买方开户行账号（普票可不提供）</label>
                                <div class="col-sm-3">
                                    <input type="text" class="form-control" name="buyer_bank_account" placeholder="请输入购买方开户行账号（普票可不提供）" value="{$info.buyer_bank_account}">
                                </div>
                            </div>
                            <div class="hr-line-dashed"></div>
                        </div>

                        <div class="box-item">
                            <div class="form-group row">
                                <label class="col-sm-1 col-form-label">开票项目名称</label>
                                <div class="col-sm-3">
                                    <input type="text" class="form-control" name="invoice_item_name" placeholder="请输入开票项目名称" value="{$info.invoice_item_name}">
                                </div>
                            </div>
                            <div class="hr-line-dashed"></div>
                        </div>

                        <div class="box-item">
                            <div class="form-group row">
                                <label class="col-sm-1 col-form-label">金额</label>
                                <div class="col-sm-3">
                                    <input type="text" class="form-control" name="price" placeholder="请输入金额" value="{$info.price}">
                                </div>
                            </div>
                            <div class="hr-line-dashed"></div>
                        </div>

                        <div class="box-item">
                            <div class="form-group row layui-form">
                                <label class="col-lg-1 col-form-label">小规模选填税率</label>
                                <div class="col-lg-3">
                                    <input type="radio" name="tax_rate" value="1" title="1%" {$info.tax_rate == 1 ? 'checked' : ''}>
                                    <input type="radio" name="tax_rate" value="3" title="3%" {$info.tax_rate == 3 ? 'checked' : ''}>
                                </div>
                            </div>
                            <div class="hr-line-dashed"></div>
                        </div>

                        <input type="hidden" name="id" value="{$info['id']}">
                        <input type="hidden" name="company_id" value="{$info['company_id']}">

                        <div class="form-group row">
                            <div class="col-sm-4 col-sm-offset-2">
                                <button type="button" class="btn btn-w-m btn-default back-page">返回</button>
                                <button type="button" class="btn btn-w-m btn-primary ajax-post">提交</button>
                            </div>
                        </div>
                    </form>
                </div>
            </div>
        </div>
    </div>
</div>

{/block}
{block name='js'}
<script src="__STATIC__/layui/layui.js"></script>
{/block}
